package com.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.enums.Events;
import com.example.enums.Status;
import com.example.po.SysSms;
import org.springframework.statemachine.StateMachine;


public interface SysSmsService extends IService<SysSms> {

    public SysSms applySms() ;

    public boolean sendSms(Long id) ;

    public boolean failSms(Long id) ;

    public boolean commitSms(Long id) ;

    public boolean sendEvents(SysSms sysSms, Events events) ;

    public StateMachine<Status, Events> getStateMachine() throws Exception;
}
